package com.acane.instagram.service;

import com.acane.instagram.pojo.Result;
import com.acane.instagram.pojo.dto.CommentDTO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDate;

public interface CommentService extends IService<CommentDTO> {
    Result getCommentHistory(String userId);

    Result getCommentList(String postId);

    int likeComment(String commentId);

    int unlikeComment(String commentId);

    Result getCommentLikeHistory(String userId);

    boolean judgeIfAlreadyLike(String commentId, String likerId);

    int countByPostId(String postId);

    Result getAllComment(
            Integer page,
            Integer size,
          String commenterUserName,
      String content,
        LocalDate startDate,
    LocalDate endDate

    );
}
